package models;

import play.db.jpa.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-8-22
 * Time: 下午8:11
 * To change this template use File | Settings | File Templates.
 */
@Entity(name = "T_QUESTION_STATISTICS")
public class QuestionStatistics extends Model {

    @Column(name = "ID")
    public Long id;

    @Column(name = "CREATE_DATE")
    Date createDate = new Date();

    //0:miss 1:true 2:false
    @Column(name = "STATUS")
    public Integer status = 0;

    @Column(name = "ANSWER_ID")
    public Long answerId;

    @Column(name = "QUESTION_ID")
    private Long questionId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }
}
